#ifndef RECEIVEFILE_H
#define RECEIVEFILE_H

#include <QObject>
#include <qthread.h>
#include <QTcpSocket>

class ReceiveFile : public QThread
{
    Q_OBJECT
public:
    explicit ReceiveFile(QTcpSocket* tcp,QObject *parent = nullptr);
protected:
    void run() override;
signals:
    void over();
private:
    QTcpSocket* m_tcp;
};

#endif // RECEIVEFILE_H
